﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FriendAD.Core.Types
{
   public class Paging<T>
    {
        /// <summary>
        /// 当前页，从1开始
        /// </summary>
        public int PageIndex { set; get; }
        /// <summary>
        /// 页面大小，默认10
        /// </summary>
        public int PageSize { set; get; }
        /// <summary>
        /// 总记录
        /// </summary>
        public int TotalNumber;
        /// <summary>
        /// 当前页面记录
        /// </summary>
        public List<T> Items { set; get; }

        public Paging()
        {
            PageIndex = 1;
            PageSize = 10;
        }
    }
}
